<?php

namespace system\components;

/**
 * {@link DocumentComponent} that holds all php error relevant information
 * such as:
 *      level - Level of rised error
 *      message - String associated with this error
 *      file - the full path and name of file where error occurred
 *      line - line where error occurred
 *
 * <code>
 *      <error>
 *          <level></level>
 *          <message></message>
 *          <file></file>
 *          <line></line>
 *      </error>
 * </code>
 *
 * @see DocumentComponent
 * @package system\components
 * @author Pavel Egorov {@link mailto:pavel@egorov.ru pavel@egorov.ru}
 * @version 0.0.1 * $Revision: 50 $
 * @copyright Copyright (c) 2011, Pavel Egorov
 */
class ErrorComponent extends DocumentComponent {

    public $level;
    public $message;
    public $file;
    public $line;

    public function __construct($level, $messge, $file, $line) {
        parent::__construct('error');
        $this->level = $level;
        $this->message = $messge;
        $this->file = $file;
        $this->line = $line;
    }

}